import { sha1 } from "@/util/sha1";
import { request, catchException } from "@/util/request";

const nonceStr = "localpagetest";
const appId = "wxde5a65d4281ac58c";
const appSecret = "";
async function createParams() {
  return;
  const crtTime = new Date().getTime();
  let params = JSON.parse(uni.getStorageSync("sdkParams") || "{}");
  if (crtTime > (+params.expiresTime || 0)) params = await getAccessToken(crtTime);
  return params;
}

export { createParams };
